// 访问 token 缓存的 key
const ACCESS_TOKEN_KEY = 'access_token'
// 刷新 token 缓存的 key
// const REFRESH_TOKEN_KEY = 'refresh_token'

function getToken(): string {
	return localStorage.getItem(ACCESS_TOKEN_KEY) || ''
}
function setToken(token: string) {
	localStorage.setItem(ACCESS_TOKEN_KEY, token)
}
function removeToken() {
	localStorage.removeItem(ACCESS_TOKEN_KEY)
}
export { getToken, setToken, removeToken }
